package HibernateBeans;

import java.io.Serializable;

public class ProductDetails implements Serializable{
String pid;
String product_type;
String description;
double cost;
int contract;

public ProductDetails(){}

public ProductDetails(String pid, String product_type, String description,
		double cost, int contract) {
	super();
	this.pid = pid;
	this.product_type = product_type;
	this.description = description;
	this.cost = cost;
	this.contract = contract;
}

public String getPid() {
	return pid;
}

public void setPid(String pid) {
	this.pid = pid;
}

public String getProduct_type() {
	return product_type;
}

public void setProduct_type(String product_type) {
	this.product_type = product_type;
}

public String getDescription() {
	return description;
}

public void setDescription(String description) {
	this.description = description;
}

public double getCost() {
	return cost;
}

public void setCost(double cost) {
	this.cost = cost;
}

@Override
public String toString() {
	return "ProductDetails [pid=" + pid + ", product_type=" + product_type
			+ ", description=" + description + ", cost=" + cost + ", contract="
			+ contract + "]";
}

public int getContract() {
	return contract;
}

public void setContract(int contract) {
	this.contract = contract;
}
}
